package com.jsb.laundry.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jsb.laundry.model.entity.UserDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author ching
* @description 针对表【user_detail(用户端个人详情表)】的数据库操作Mapper
* @createDate 2023-09-04 15:18:50
* @Entity com.jsb.laundry.model.entity.UserDetail
*/
public interface UserDetailMapper extends BaseMapper<UserDetail> {

    UserDetail findUserDetailByUserId(String userId);
    Page<UserDetail> listUserFollowByPage(IPage<UserDetail> page,
                                          @Param(Constants.WRAPPER) Wrapper<UserDetail> queryWrapper,
                                                                       String userId);
    Page<UserDetail> listUserFansByPage(IPage<UserDetail> page,
                                        @Param(Constants.WRAPPER) Wrapper<UserDetail> queryWrapper,
                                                                     String userId);
}




